package cn.lili.modules.goods.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 商品采集
 *
 * @author pikachu
 * @since 2020-02-18 15:18:56
 */
@Data
@TableName("goods_grab")
@ApiModel(value = "商品采集记录")
public class GoodsGrab{


    private static final long serialVersionUID = -1L;


    @TableId(type = IdType.ASSIGN_ID)
    private String grabId;

    private String siteId;

    private Integer isVirtual;

    private String categoryId;

    private String categoryName;

    private Integer totalNum;

    private Integer successNum;

    private Integer errorNum;

    private Long createTime;

//    @NotEmpty(message = "品牌名称不能为空")
//    @Length(max = 20, message = "品牌名称应该小于20长度字符")
//    @ApiModelProperty(value = "品牌名称", required = true)
//    private String name;
//
//    @NotEmpty(message = "品牌图标不能为空")
//    @Length(max = 255, message = "品牌图标地址长度超过255字符")
//    @ApiModelProperty(value = "品牌图标", required = true)
//    private String logo;

}